UsuarioController.novoAction = new (function ()
{
    "use strict";

    var _self = this;

    /**
     * @returns {String}
     */
    this.toString = function ()
    {
        return 'indexAction';
    };




    $('#gravar').click(function () {
        var form = $('#frmCadastroUsuario');
        if (Core.form.validate(form)) {
            Zf2.Ajax().submit({
                "route": "salvar",
                "data": form,
                "callbackSuccess": function () {
                    Core.redirect({
                        "route" : "admin"
                    });
                }
            });
        }
    });

    Core.console.debug(this.toString(), 'init', Core.console.type.INFO);
});

